package com.itheima.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author zwy
 * Sound 实体类
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "sound")
public class Sound implements Serializable {

    private Integer userId;  //用户id
    private String avatar; //头像
    private String nickname; //昵称
    private String gender; //性别
    private Integer age;//年龄
    private String soundUrl;//语音地址
    private Integer remainingTimes;//剩余次数


}